#ifndef _DOPPLER_H
#define _DOPPLER_H

#include "lib.h"

#define DOP_MSG_HEAD_NUM       0x0c
#define DOP_MSG_HEAD_FUNC_CODE 0xfc

typedef struct
{
    uint8 len;
    uint8 func;
    uint8 count;
    uint16 velocity;
    uint16 s1;
    uint16 s2;
    uint16 resv;
    uint8 status;
    uint8 fcs;
} DOP_Msg_t;

int DOP_Init(void);
void DOP_Load(void);
void DOP_PackData(void);
int DOP_Send(void);
void DOP_SetParam(uint32 spd);
void DOP_Close(void);

void show_dop_send_data(void);
void test_dop_send_data(void);

#endif // _DOPPLER_H